package com.swordliu.facebook.pojo.entity;

import java.util.Date;

public class Role {
    private Long id;

    private String key;

    private String name;

    private Integer type;

    private String creater;

    private Date createTime;

    public Role(Long id, String key, String name, Integer type, String creater, Date createTime) {
        this.id = id;
        this.key = key;
        this.name = name;
        this.type = type;
        this.creater = creater;
        this.createTime = createTime;
    }

    public Role() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key == null ? null : key.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater == null ? null : creater.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}